package com.guigu.www.mapper;

import com.guigu.www.pojo.UserAnswer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author DengHao
 * @since 2021-10-21
 */
public interface UserAnswerMapper extends BaseMapper<UserAnswer> {
    /*根据用户答题表的题目id和会员的id删除信息*/
    @Delete("DELETE FROM user_answer WHERE rub_id = #{rid} AND mem_id = #{mid}")
    int DeleteByMid(@Param("rid") Integer rid,@Param("mid") Integer mid);
}
